package com.scs.application.modules.wm.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.scs.application.core.utils.*;
import com.scs.application.modules.wm.entity.OrderBarcode;
import com.scs.application.modules.wm.entity.Stock;
import com.scs.application.modules.wm.mapper.OrderBarcodeMapper;
import com.scs.application.modules.wm.service.OrderBarcodeService;
import com.scs.application.core.service.BaseServiceImpl;
import com.scs.application.utils.ExportHeadDTONew;
import com.scs.application.utils.ImportResult;

import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.util.CellRangeAddress;

import org.springframework.stereotype.Service;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.util.*;
import java.util.stream.Collectors;

/**
 * <p>
 *  服务实现类
 * </p>
 */
@Service
public class OrderBarcodeServiceImpl extends BaseServiceImpl<OrderBarcodeMapper, OrderBarcode> implements OrderBarcodeService {

    @Resource
    private OrderBarcodeMapper orderBarcodeMapper;


    @Override
    public List<Stock> getBarcode(String lineId) {
        List<Stock> orders = list(Wrappers.<Stock>query().eq("line_id", lineId));

        return orders;
    }

    @Override
    public List<Stock> list(QueryWrapper<Stock> line_id) {
        return null;
    }

}
